package com.zlf.sb.demo.service.impl;

import com.zlf.sb.demo.design.factory.AbstractSceneHandleBase;
import com.zlf.sb.demo.design.factory.SceneHandleType;
import com.zlf.sb.demo.dto.ContractEvent;
import com.zlf.sb.demo.dto.TResult;
import com.zlf.sb.demo.dto.UserEntityDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@SceneHandleType("CLOSED")
@Component
@Slf4j
public class ContractClosedSceneHandleImpl extends AbstractSceneHandleBase<UserEntityDto, ContractEvent, TResult<Boolean>> {

    /*@Resource
    private PurchasePayLaterBizService purchasePayLaterBizService;
*/


    @Override
    public TResult<Boolean> execute(ContractEvent contractEvent) {
       // UserSignResult userSignResult = purchasePayLaterBizService.buildUserSignResult(contractEvent, SignStatus.SIGN_FAIL);
        return new TResult();
    }

    @Override
    public Boolean judgeConditions(UserEntityDto params) {
        return true;
    }
}
